package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.RoleDto;
import com.zzyl.vo.RoleVo;

import java.util.Set;

/**
 * @Description RoleService
 * @Author apeng
 * @Date 2024-10-24
 */
public interface RoleService {

    ResponseResult<PageResponse<RoleVo>> findRoleVoPage(RoleDto roleDto, Integer pageNum, Integer pageSize);

    void createRole(RoleDto roleDto);

    Set<String> findCheckedResources(Long roleId);

    ResponseResult<Boolean> updateRole(RoleDto roleDto);

    ResponseResult deleteRole(Long roleId);

    ResponseResult initRoles();
}
